package com.company.project.dao;

import com.company.project.core.Mapper;
import com.company.project.model.SysFunction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysFunctionMapper extends Mapper<SysFunction> {

    public List<SysFunction> getFunctionListByRole(@Param("roleId") int roleId);

    /**
     * 根据父id和类型查询子功能
     * @param parentId 父ID
     * @param type 类型
     * @return
     */
    List<SysFunction> selectByParentId(@Param("parentId") int parentId, @Param("type") Integer type);
}